﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Iworld.ViewModel
{
    /// <summary>
    /// 定义弹窗
    /// </summary>
    public interface IPop
    {
        /// <summary>
        /// 获取或设置一个值，该值指示是接受还是取消
        /// </summary>
        bool? DialogResult { get; set; }

        /// <summary>
        /// 显示弹窗
        /// </summary>
        void Show();

        /// <summary>
        /// 窗口关闭之后将触发的事件
        /// </summary>
        event EventHandler Closed;
    }

    public interface IPop<T> : IPop
    {
        /// <summary>
        /// 额外的信息
        /// </summary>
        T Info { get; set; }
    }
}
